package com.example.houduan.demos.web.mapper;

import com.example.houduan.demos.web.entity.Department;
import com.example.houduan.demos.web.entity.Employee;
import com.example.houduan.demos.web.entity.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartMapper {


    @Select("select * from houduan.department")
    List<Department> findAll();

    @Select("select * from houduan.employee where department_id = ${id}")
    List<Employee> getWith(String id);
}
